# Maintainer: Noel Kuntze <noel.kuntze@contauro.com>
pkgname=libmanticore-columnar
pkgver=2.2.4
pkgrel=0
pkgdesc="Column-oriented storage library"
url="https://manticoresearch.com/"
arch="x86_64 aarch64"
license="Apache-2.0"
source="$pkgname-$pkgver.tar.gz::https://github.com/manticoresoftware/columnar/archive/refs/tags/$pkgver.tar.gz
	0001-include-cstdint.patch
	"
makedepends="
	cmake
	samurai
	"
builddir="$srcdir/columnar-$pkgver/"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DDISTR_BUILD=default \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	ctest --test-dir build --output-on-failure -j1
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
f374799a61f86b6532c94d6ed647a7f435df3b1df7076b34915eae6d22a3e8271649f2e413640556dc6b72a55786a1ce89fd51aa123b0939034b5a8207b786f1  libmanticore-columnar-2.2.4.tar.gz
ed65bd8195861ce02f21e4ef2d143aae50bc7c135504859713e33a00ec8cd4a54727c36343578ca347c7393c9a3283b803f978c70d4b265ca5b5023e1af0608a  0001-include-cstdint.patch
"
